From: Giovanni Campagna Date: Sat, 27 Apr 2013 12:11:14 +0000 (+0200) Subject: WorkspacesView: set the actual geometry when creating workspaces X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4259 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a9058e471c98841c7772784d4a165dc2ddc80288;p=gnome-shell.git WorkspacesView: set the actual geometry when creating workspaces If we created a workspace after showing the view, we would never set the geometry on it, which would cause an exception in the window layout code and leave the DND state tracking in an undefined state. https://bugzilla.gnome.org/show_bug.cgi?id=699029 --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 5c97e9c73..2f4730873 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -297,6 +297,8 @@ const WorkspacesView = new Lang.Class({ if (newNumWorkspaces > oldNumWorkspaces) { for (let w = oldNumWorkspaces; w < newNumWorkspaces; w++) { this._workspaces[w].setFullGeometry(this._fullGeometry); + if (this._actualGeometry) + this._workspaces[w].setActualGeometry(this._actualGeometry); this.actor.add_actor(this._workspaces[w].actor); }